package gist.enun;

import java.util.HashMap;
import java.util.Map;

/**
 * 枚举的多种用途
 * Created by Administrator on 2017/5/4.
 */

public enum Color {
//    red("红色", new HashMap<String, String>("红色", "红灯")), green("绿色", new HashMap<String, String>("红色", "红灯")), yellow("黄色", new HashMap<String,String>("红色","红灯"));
//    private String name;
//    private Map<String, String> map;
//
//    private Color(String name, Map<String, String> map) {
//        this.name = name;
//        this.map = map;
//    }
//
//    public static void main(String[] args) {
//        System.out.println(Color.red.name);
//    }
}
